import 'package:wanxiang_app/generated/json/base/json_convert_content.dart';
import 'package:wanxiang_app/bean/detail_config_entity.dart';

DetailConfigEntity $DetailConfigEntityFromJson(Map<String, dynamic> json) {
  final DetailConfigEntity detailConfigEntity = DetailConfigEntity();
  final int? code = jsonConvert.convert<int>(json['code']);
  if (code != null) {
    detailConfigEntity.code = code;
  }
  final String? msg = jsonConvert.convert<String>(json['msg']);
  if (msg != null) {
    detailConfigEntity.msg = msg;
  }
  final String? fqkf = jsonConvert.convert<String>(json['fqkf']);
  if (fqkf != null) {
    detailConfigEntity.fqkf = fqkf;
  }
  final String? fqkfText = jsonConvert.convert<String>(json['fqkfText']);
  if (fqkfText != null) {
    detailConfigEntity.fqkfText = fqkfText;
  }
  final String? ljgm = jsonConvert.convert<String>(json['ljgm']);
  if (ljgm != null) {
    detailConfigEntity.ljgm = ljgm;
  }
  final String? ljzx = jsonConvert.convert<String>(json['ljzx']);
  if (ljzx != null) {
    detailConfigEntity.ljzx = ljzx;
  }
  final String? iskj = jsonConvert.convert<String>(json['iskj']);
  if (iskj != null) {
    detailConfigEntity.iskj = iskj;
  }
  final String? url = jsonConvert.convert<String>(json['url']);
  if (url != null) {
    detailConfigEntity.url = url;
  }
  final String? urlt = jsonConvert.convert<String>(json['urlt']);
  if (urlt != null) {
    detailConfigEntity.urlt = urlt;
  }
  final dynamic data = json['data'];
  if (data != null) {
    detailConfigEntity.data = data;
  }
  return detailConfigEntity;
}

Map<String, dynamic> $DetailConfigEntityToJson(DetailConfigEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['code'] = entity.code;
  data['msg'] = entity.msg;
  data['fqkf'] = entity.fqkf;
  data['fqkfText'] = entity.fqkfText;
  data['ljgm'] = entity.ljgm;
  data['ljzx'] = entity.ljzx;
  data['iskj'] = entity.iskj;
  data['url'] = entity.url;
  data['urlt'] = entity.urlt;
  data['data'] = entity.data;
  return data;
}

extension DetailConfigEntityExtension on DetailConfigEntity {
  DetailConfigEntity copyWith({
    int? code,
    String? msg,
    String? fqkf,
    String? fqkfText,
    String? ljgm,
    String? ljzx,
    String? iskj,
    String? url,
    String? urlt,
    dynamic data,
  }) {
    return DetailConfigEntity()
      ..code = code ?? this.code
      ..msg = msg ?? this.msg
      ..fqkf = fqkf ?? this.fqkf
      ..fqkfText = fqkfText ?? this.fqkfText
      ..ljgm = ljgm ?? this.ljgm
      ..ljzx = ljzx ?? this.ljzx
      ..iskj = iskj ?? this.iskj
      ..url = url ?? this.url
      ..urlt = urlt ?? this.urlt
      ..data = data ?? this.data;
  }
}